import styled from "styled-components";

export const ItemWraper = styled.div`
   position: relative;
   &::after {
   content: '';
   display: inline-block;
   position: absolute;
   left: 14px;
   top: 0;
   height: 100%;
   border-left:2px solid  var(--color) ;
   }
`

export const Title = styled.div`
 position: relative;
  line-height: 1;

  &::after{
    content:  '';
    display: inline-block;
    border-top: 2px solid var(--color);
    position: absolute;
    width: 100%;
    bottom: 2px;
    z-index: 1;
    left: 0;
  }

  &::before {
    display: inline-block;
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid var(--color);
    border-bottom: 4px solid transparent;
    border-top: 4px solid var(--color);
    position: absolute;
    bottom: -5px;
    left: 0;
  }
`

export const TitleContent = styled.h3`
  position: relative;
  z-index: 1;
`
export const TitleIcon = styled.span`
   display: inline-block;
   height: 102%;
   width: 60px;
   position: absolute;
   right: -1px;
   top: -2px;
   overflow: hidden;

   &::after{
      display: inline-block;
      content: "";
      width: 30px;
      height: 50px;
      overflow: hidden;
      border-style: solid;
      border-width: 26px 0 0 26px;
      position: absolute;
      right: -6px;
      top: -21px;
      transform: rotate(-45deg);
      border-color: var(--bkgcolor);
      box-sizing: border-box;
   }

   &::before{
      border: 2px solid #fff;
      display: block;
      content: "";
      width: 3px;
      height: 50px;
      position: absolute;
      right: 28px;
      top: -12px;
      transform: rotate(-45deg);
   }
`
